<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let name = prompt('请输入用户名：', '')
			if(name == 'Admin'){
				let pass = prompt('Password?' ,'');
				if( pass == 'TheMaster'){
					alert('Welcome')
				} else if (pass === '' || pass === null) {
					alert( 'Canceled' );
				} else {
					alert( 'Wrong password' );
				}

			}else if( name == null || name == ''){
				alert('Canceled')
			} else{
				alert('I donot know you ')
			}
		</script>
	</body>
</html>
